/*
 * FileName: ResultVo.java
 * Author:   zzw
 * Date:     2018年05月25日
 * Description:
 */
package com.chezhibao.trace.vo;

/**
 * 〈〉<br>
 * 〈〉
 *
 * @author zzw
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本]（可选）
 */
public class ResultVo<T> {

    private T data;
    private String code;
    private boolean isSuccess;

    public ResultVo(T data) {
        this.data = data;
    }

    public ResultVo() {
        this.code = code;
        this.isSuccess = isSuccess;
    }

    public ResultVo(T data, String code, boolean isSuccess) {
        this.data = data;
        this.code = code;
        this.isSuccess = isSuccess;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }
}
